package com.boyi.shared.common;

import java.io.Serializable;

/**
 * Page.class
 *
 * @author tingwen
 * @date date
 */
public class Page implements Serializable {
    /**
     * 返回的对象
     */
    //总数
    protected int totalCount = 0;
    //页数量大小
    protected int pageSize = 0;
    //当前页
    protected int pageNum = 0;
    //总页数
    protected int totalPage = 0;

    public int getTotalCount() {
        return totalCount;
    }

    public Page setTotalCount(int totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public int getPageSize() {
        return pageSize;
    }

    public Page setPageSize(int pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public int getPageNum() {
        return pageNum;
    }

    public Page setPageNum(int pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public Page setTotalPage(int totalPage) {
        this.totalPage = totalPage;
        return this;
    }
}
